export const constantRoute = [
  {
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'Login',
  },
  {
    path: '/',
    name: 'Layout',
    component: () => import('@/layout/index.vue'),
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
        },
      },
      {
        path: '/todo',
        component: () => import('@/views/todo/index.vue'),
        meta: {
          title: '任务',
        },
      },
      {
        path: '/eventBus',
        component: () => import('@/views/eventBus/index.vue'),
        meta: {
          title: '任务',
        },
      },
      {
        path: '/rotateMenu',
        component: () => import('@/views/rotateMenu/index.vue'),
        meta: {
          title: '旋转菜单',
        },
      },
    ],
  },
  {
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      hidden: true,
      icon: 'DataLine',
    },
  },
]
